package com.witdata.mysql.domain.entity;

import com.mybatisflex.annotation.Id;
import com.mybatisflex.annotation.KeyType;
import com.mybatisflex.annotation.Table;
import java.io.Serializable;
import java.time.LocalDateTime;


import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * 会话消息表 实体类。
 *
 * @author admin
 * @since 2025-05-09
 */
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
@Table("t_session_message")
public class TSessionMessage implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 会话消息ID
     */
    @Id(keyType = KeyType.Auto)
    private Long id;

    /**
     * 会话ID
     */
    private Long sessionId;

    /**
     * 发送人ID
     */
    private Long senderId;

    /**
     * 消息内容
     */
    private String content;

    /**
     * 发送时间
     */
    private LocalDateTime sendTime;

    /**
     * 阅读状态：0未读，1已读
     */
    private Boolean readState;

}
